package com.heima.api.admin;

import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(tags = "频道管理",value = "channel",description = "频道管理controller")
public interface AdChannelControllerApi {
    @ApiOperation("频道分页列表查询")
    ResponseResult findByNameAndPage(ChannelDto channelDto);
    @ApiOperation("频道列表查询")
    ResponseResult findAll();
    @ApiOperation("添加频道信息")
    ResponseResult save(AdChannel adChannel);
    @ApiOperation("修改频道信息")
    ResponseResult update(AdChannel adChannel);
    @ApiOperation("根据ID删除频道信息")
    ResponseResult deleteById(Integer id);
}
